package org.administer.dao;

import org.administer.pojo.CrmUser;
import org.apache.ibatis.annotations.Param;

public interface CrmUserDao extends CommonDao<CrmUser,Integer> {
    /**
     * Login
     * @param username
     * @return
     */
    public CrmUser login(String username);

    public void addUserRole(@Param("userId") Integer userId, @Param("roleIds") Integer roleIds);

    public void updateUserRole(@Param("userId") Integer userId, @Param("roleIds") Integer roles);

    public void deleteUserRole(Integer userid);

    /**
     * 个人信息修改
     * @param crmUser
     */
    public void updatauser(CrmUser crmUser);

}
